home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_61545.txt < prev    next >
Text File  |  1991-02-27  |  2KB  |  36 lines

  1. -- card: 61545 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 4
  9. ----- text -----
  10. altered significantly to obtain the desired functionality, the programmer should instead derive a new class.
  11.  
  12. On the other hand, the programmer should inspect the structure of any new class to determine whether a more general "abstract" class (of which an object is never defined) can instead be defined.  The desired class may then be derived from the more general class, which itself has a greater likelyhood of reuse in future programming efforts.  This approach also helps simplify future maintentance of the application.
  13.  
  14. Abstract classes in turn may derive from still more general classes, to create a tree-shaped class hierarchy.  (The multiple inheritance property of C++ v.2.0 allows non-tree-shaped structures.)  Often all classes used in an application are derived from a single "root" class, such as the Generic_Class used in the example in Chapter 4.  This simplifies changing certain basic characteristics which are common to all classes.
  15.  
  16. A collection of related general-purpose classes may be organized to form a class library* for use in future programming efforts.  This sort of library may be distri- buted in precompiled modules rather than in the form of source code.  Interestingly,
  17.  
  18. -- part contents for background part 7
  19. ----- text -----
  20. 202
  21.  
  22. -- part contents for background part 29
  23. ----- text -----
  24. 22190
  25.  
  26. -- part contents for background part 27
  27. ----- text -----
  28. Think Class Library
  29.  
  30. -- part contents for background part 20
  31. ----- text -----
  32. Think Class Library - p138
  33.  
  34. -- part contents for background part 17
  35. ----- text -----
  36. p3